export type OptionType = {
  value: string;
  label: string;
};

export type QuestionRadioPropsType = {
  title?: string;
  options?: OptionType[];
  value?: string;
  isVertical?: boolean;

  onChange?: (newProps: QuestionRadioPropsType) => void;
  disabled?: boolean;
};

export const QuestionRadioDefaultProps: QuestionRadioPropsType = {
  title: "单选标题",
  options: [
    { label: "选项1", value: "0" },
    { label: "选项2", value: "1" },
    { label: "选项3", value: "2" },
  ],
  value: "",
  isVertical: false,
};

// 统计组件的属性类型
export type QuestionRadioStatPropsType = {
  stat: { name: string; count: number }[];
};
